package day0814;

import java.util.Arrays;

/**
 * @Author:galaxy_yan
 * @Date: 2022/8/15
 * @Time: 9:36
 * @Description
 * 作业标题(1705)
 * 改变原有数组元素的值
 */
public class text3 {
    public static void main(String[] args) {
        int[] arr={1,2,3};
        transfer(arr);
        System.out.println(Arrays.toString(arr));
    }

    private static void transfer(int[] arr) {
        for (int i = 0; i < arr.length; i++) {
            arr[i]*=2;
        }
    }
}
